home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / mcu / headers.arc / 68HC05J1.05H < prev    next >
Text File  |  1989-09-21  |  4KB  |  93 lines

  1. /*
  2.                      MC68HC05J1  HEADER
  3.  
  4. WRITTEN:    9/21/89
  5. REVISION:   0.9
  6. USE FOR:    MC68HC05J1
  7.  
  8. The following header describes the memory, vectors, peripherals and special
  9. instructions for the MC68HC05J1 microprocessor.  The information is taken from
  10. the Motorola Data Sheet and is assumed to be correct.  It is specifically
  11. designed to work with the Byte Craft C6805 Compiler, and is offered free for
  12. your convenience.
  13.  
  14. I have taken most of the mnemonics directly from the Motorola literature with
  15. the exception of those labels which could cause confusion with the compiler
  16. or the assembler.  Please check all labels before using.
  17.  
  18. If you discover any errors or omissions, please communicate them to me through
  19. the FREEWARE bulletin board or directly at the Motorola Detroit Sales Office
  20. (313) 261-6200.
  21.  
  22. Mike Pauwels,  Senior FAE
  23.  
  24. ******************************************************************************
  25. *                                                                            *
  26. * This product is distributed without charge to users via the MOTOROLA       *
  27. * FREEWARE Bulletin Board.  The product is provided "as is" without warranty *
  28. * of any kind either expressed or implied, including, but not limited to any *
  29. * warranties of merchantability and fitness for a particular purpose.  All   *
  30. * risks of using this product including the entire costs of any necessary    *
  31. * remedies are those of the user and MOTOROLA assumes no liability of any    *
  32. * kind.                                                                      *
  33. *                                                                            *
  34. ******************************************************************************
  35.  
  36. */
  37.  
  38.  
  39. /*                   MEMORY MAP                                              */
  40.  
  41. #pragma memory ROMPROG  [1024]  @ 0x0300 ;
  42. #pragma memory RAMPAGE0 [64]    @ 0x00c0 ;
  43.  
  44.  
  45. /*                   INTERRUPT VECTORS                                       */
  46.  
  47. #pragma vector __RESET @ 0x07fe ;
  48. #pragma vector SWI     @ 0x07fc ;
  49. #pragma vector IRQ     @ 0x07fa ;
  50. #pragma vector TIMER   @ 0x07f8 ;
  51.  
  52.  
  53. /*                   INPUT/ OUTPUT PORTS                                     */
  54.  
  55. #pragma portrw porta   @ 0x00;  /* 8 - bit General Purpose I/O Port          */
  56. #pragma portrw portb   @ 0x01;  /* 6 - bit General Purpose I/O Port          */
  57. #pragma portrw ddra    @ 0x04;  /* Data direction, Port A                    */
  58. #pragma portrw ddrb    @ 0x05;  /* 0, 0, Data direction, Port B              */
  59.  
  60.  
  61. /*                    TIMER/WATCHDOG REGISTERS                               */
  62.  
  63. #pragma portrw tcsr   @ 0x08;  /* TOF,RTIF,TOFE,RTIE,0,0,RT1,RT0             */
  64. #define tof    7                /* Timer Overflow Flag                       */
  65. #define rtif   6                /* Real Time Interrupt Flag                  */
  66. #define tofe   5                /* Timer Overflow Enable                     */
  67. #define rtie   4                /* Real Time Interrupt Enable                */
  68. #define rt1    1                /* Real Time Interrupt Rate Select 1         */
  69. #define rt0    0                /* Real Time Interrupt Rate Select 0         */
  70.  
  71. /*
  72.               RT1:RT0   RTI RATE    MIN. COP RESET
  73.              --------------------------------------
  74.              |  00    |  8.2 ms.  |     57.4 ms.  |
  75.              |  01    | 16.4 ms.  |    114.8 ms.  |
  76.              |  10    | 32.8 ms.  |    229.6 ms.  |
  77.              |  11    | 65.5 ms.  |    458.5 ms.  |
  78.              ______________________________________
  79. */
  80. #pragma portrw tcr    @ 0x09;        /* Timer Counter Register               */
  81. #pragma portw watchdog @ 0x07f0 ;    /* Watchdog Register                    */
  82.  
  83.  
  84.  
  85. /*                   MC68HC05 INSTRUCTIONS                                   */
  86.  
  87. #pragma has STOP ;
  88. #pragma has WAIT ;
  89. #pragma has MUL ;
  90.  
  91.  
  92.  
  93.